package data
{
	public class GridVO
	{
		//地格vo
		public var id:int; //在地格数组中的 index
		public var flyTo:int; //跳转目标地格 的id
		public var isObstacle:Boolean; //是否是障碍
		public var itemVO:ItemVO; //地格上的 物品信息
		
		public function GridVO(id:int, isbarry:int)
		{
			this.id = id;
			isObstacle = Boolean(isbarry);
		}
		
		/**
		 * 设置跳转点 
		 * @param gridID
		 * 
		 */		
		public function setFly(gridID:int):void
		{
			flyTo = gridID;
		}
		
		/**
		 * 给地格添加item 
		 * @param itemVO
		 * 
		 */		
		public function addItem(itemVO:ItemVO):void
		{
			this.itemVO = itemVO;
		}
		
		public function removeItem():void
		{
			this.itemVO = null;
		}
	}
}